<?php
$filename = dirname(__FILE__) . '.\suoyi.zip';
$out_filename = 'a.zip';
// We'll be outputting a file
@header('Accept-Ranges: bytes');
@header('Content-Length: ' . filesize($filename));
// It will be called
@header('Content-Transfer-Encoding: binary');
@header('Content-type: application/octet-stream');
@header('Content-Disposition: attachment; filename=' . $out_filename);
@header('Content-Type: application/octet-stream; name=' . $out_filename);
// The source is in filename
$handle = @fopen($filename, "rb");
$contents = '';
while (!feof($handle)) {
	$tmp = fread($handle, 1048576);
	$contents .= $tmp;
	sleep(1);
	flush();
	echo $tmp;
}
fclose($handle);
